<div class="page-content" >
	<div class="panel panel-default">
		<div class="panel-heading">
			<ul class="breadcrumb">
			
				<li><a   w=0.8 href="<{:addons_url('blocks_image',array('blocks_name'=>$blocks_name,'tpl'=>$tpl))}>">文章列表</a> </li>
				<li class="active">添加文章</li>
			</ul>
		</div>
		<div class="panel-body">
			<form id="myform" enctype="multipart/form-data" method="post" class="form-horizontal" action="<{:addons_url('add_blocks_image')}>">
				<input type="hidden" name="id" value="<{$data.id}>">
				<input type="hidden" name="tpl" value="<{$tpl}>">
				<input type="hidden" name="blocks_name" value="<{$blocks_name}>">
				<div class="form-group">
					<label for="input-title"  class="col-sm-2 control-label">标题</label>
					<div class="col-sm-8">
						<input  type="text" class="form-control" id="title" name="title" value="<{$data.title}>">
					</div>
				</div>
				 
				<div class="form-group">
					<label for="input-title"  class="col-sm-2 control-label">内容</label>
					<div class="col-sm-8">
						<textarea class="form-control" data-type="kindeditor" name="content"><{$data.content}></textarea>
					</div>
				</div>
				 
				 
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-8">
						<button type="submit" class="btn btn-primary">保存</button>
						<a  href="<{:addons_url('blocks_image',array('blocks_name'=>$blocks_name,'tpl'=>$tpl))}>"   class="btn btn-primary">返回</a> </div>
				</div>
			</form>
		</div>
	</div>
</div>
<script>
 
$(function(){
    $(".form-horizontal").bootstrapValidator({
        message: '您填入的值不合法',
        fields:{
            title: {
                message: '标题名称',
                validators: {
                    notEmpty: {
                        message: '标题不能为空'
                    },
                }
            },
			
        }
    });
});
 </script> 